<template>
  <div class="lost-container">
    <el-card class="lost-card">
      <div class="title">
        <span class="desc">失物招领</span>
        <img class="icon" src="@/assets/img/item-img/lostAndFound.png" alt="" />
      </div>
      <div class="body">
        <div class="commit">
          <el-button type="primary" @click="addDialogVisible = true">发布</el-button>
        </div>
        <el-table border stripe :data="lostList">
          <el-table-column type="index"> </el-table-column>
          <el-table-column label="发布人" prop="studentName"></el-table-column>
          <el-table-column label="发布时间" prop="createTime"></el-table-column>
          <el-table-column label="发布内容" prop="describe"></el-table-column>
          <el-table-column label="联系方式" prop="studentPhone"></el-table-column>
        </el-table>
        <!-- 发布对话框 -->
        <el-dialog title="发布招领信息" :visible.sync="addDialogVisible" width="70%"> </el-dialog>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      lostList: [
        {
          studentName: '路人甲',
          createTime: '2022-04-06 15:17:51',
          describe: '捡到了一部手机',
          studentPhone: '18888888888'
        }
      ],
      addDialogVisible: false
    }
  },
  created() {},
  methods: {}
}
</script>

<style lang="less" scoped>
.lost-container {
  .lost-card {
    .title {
      display: flex;
      align-items: center;
      .desc {
        font-size: 30px;
        color: #3a62d7;
        letter-spacing: 10px;
        font-weight: bold;
        text-shadow: 2px 2px 5px #999;
      }
      .icon {
        width: 40px;
        height: 40px;
      }
      .icon:hover {
        transform: translateY(-5px);
        transition: 0.5s;
      }
    }
    .body {
      .el-table {
        margin-top: 15px;
        font-size: 12px;
      }
      .commit {
        display: flex;
        flex-direction: row-reverse;
      }
    }
  }
}
</style>
